<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>


    <script>
        let num1 = prompt("请输入整数一");
        let num2 = prompt("请输入整数二");
        let num3 = prompt("请输入整数三");
        let num = 0;
        console.log("输入的三个数字分别是", num1, num2, num3);
        a = num - num1;
        b = num - num2;
        c = num - num3;
        // if(a > b){
        //     if(b > c){
        //         console.log("三个数字的最大值为：",num3)
        //     }else{
        //         console.log("三个数字的最大值为：",num2);
        //     }
        // }else if(a < b){
        //     if(a < c){
        //         console.log("三个数字的最大值为：",num1);
        //     }else{
        //         console.log("三个数字的最大值为：",num3)
        //     }
        // }
        if (a < b && a < c) {
            console.log("最大值为：", num1);
        } else if (b < a && b < c) {
            console.log("最大值为：", num2);
        } else if (c < a && c < b) {
            console.log("最大值为：", num3);
        }
        let max = a;
        if(max < b){
            max = b;
        }
        if(max < c){
            max = c;
        }
        console.log(max);
        








    </script>
</body>

</html>